package cn.redragon.soa.common.web;

import java.beans.PropertyEditorSupport;

public class StringEscapeEditor extends PropertyEditorSupport {

    @Override
    public void setAsText(String text) {
        if (text == null) {
            setValue(null);
        } else {
            setValue(JsoupUtil.clean(text));
        }
    }
}
